package common.degrafa.render{
	import com.degrafa.GeometryGroup;
	
	//import mx.controls.Alert;
	
	public class DegrafaGeometry extends GeometryGroup{
		//暂时记录xml文件中各地区的id属性
		private var _gddwbm:String;
		private var _gddwmc:String;

		private var _sjgddwbm:String;
		private var _sjgddwmc:String;
		public var etl:Object;
		
		public function DegrafaGeometry(obj:Object=""){
			//var type:String = obj.children[0].id;//obj.parent.parent.id
			//this.myId = this.obj.id.toString();
			this.etl = obj.parent.parent;
			var temp:String = obj.parent.parent.id;
			this._gddwbm=temp.split("#")[0];
			this._gddwmc=temp.split("#")[1];
			
			//var figura:Geometry = super.geometryCollection.pop();
			//figura.fill = new SolidFill("red");	
			//super.geometryCollection.push(figura);	
			
			obj.parent.parent.parent.width = "85px";
			obj.parent.parent.parent.height = "56px"
			var width:String = obj.parent.parent.parent.width;
			//trace(width +"   "+type+"   "+areaName);
		}
		
		

		public function get sjgddwmc():String{
			return _sjgddwmc;
		}

		public function set sjgddwmc(value:String):void	{
			_sjgddwmc = value;
		}

		public function get sjgddwbm():String{
			return _sjgddwbm;
		}

		public function set sjgddwbm(value:String):void	{
			_sjgddwbm = value;
		}

		public function get gddwmc():String	{
			return _gddwmc;
		}

		public function set gddwmc(value:String):void{
			_gddwmc = value;
		}

		public function get gddwbm():String	{
			return _gddwbm;
		}

		public function set gddwbm(value:String):void{
			_gddwbm = value;
		}

	}
}